using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

public class KJCESHI : MonoBehaviour
{
    public VoiceInputs voiceInputs;
    public XunfeiSpeechToText xunfeiSpeechToText;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    private void Update()
    {
        if (Input.GetMouseButtonDown(1))
        {
          
            Debug.Log("start");
            xunfeiSpeechToText.str = "";
            ChatSample.Instance.StartRecord();
        }
        if (Input.GetMouseButtonUp(1))
        {

            Debug.Log("stop");
            ChatSample.Instance.StopRecord();

        }


    }
}
